package com.burgeon.extention.customer.controller;

import com.burgeon.extention.customer.model.response.DemoUserResponseVo;
import com.burgeon.extention.customer.service.DemoService;
import nds.util.NDSException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("user")
    public DemoUserResponseVo testUser(Long id) throws NDSException {
        DemoUserResponseVo user = demoService.getUserById(id);
        return user;
    }

}
